<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action=""  method="post" id="cp-form">.
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md1">
                    <ul class="cate-tab">
                        <li class="cate-this">基础属性</li>
                        <li>SEO设置</li>
                    </ul>
                </div>
                <div class="layui-col-md11 cate-content">
                    <div class="cate-tab-item cate-show">
                        <div class="layui-form-item">
                            <label class="layui-form-label">所属层级 <span class="request-tips">*</span></label>
                            <div class="layui-input-inline">
                                <input type="hidden" name="parent_id" value="0">
                                <input type="text" placeholder="一级分类" data-url="{:url('admin/steward.category/addcategory')}" class="layui-input menuLevel">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">分类名称 <span class="request-tips">*</span></label>
                            <div class="layui-input-inline">
                                <input type="text" name="name" required  lay-verify="required" placeholder="分类名称" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">分类别名</label>
                            <div class="layui-input-inline">
                                <input type="text" name="alias" required  lay-verify="required" placeholder="分类别名" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">排序</label>
                            <div class="layui-input-inline">
                                <input type="text" name="list_order" required  lay-verify="required" placeholder="排序" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">描述</label>
                            <div class="layui-input-block">
                                <textarea name="description" id="" cols="30" rows="10" class="layui-textarea"></textarea>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button type="button" class="layui-btn" id="test1">
                                    <i class="layui-icon">&#xe67c;</i>缩略图
                                </button>
                            </div>
                            <div class="layui-input-block">
                                <table class="layui-table" id="app-photo">
                                    <tr>
                                        <td>
                                            <input type="text" class="layui-input" name="more[thumbnail]" value="">
                                        </td>
                                        <td>
                                            <img src="" alt="" width="150" >
                                        </td>
                                        <td>
                                            <a href="javascript:;" class="layui-btn layui-btn-danger layui-btn-xs del-photos-btn">删除</a>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="cate-tab-item">
                        <div class="layui-form-item">
                            <label class="layui-form-label">SEO标题</label>
                            <div class="layui-input-inline">
                                <input type="text" placeholder="SEO标题" class="layui-input" name="seo_title">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">所属层级</label>
                            <div class="layui-input-inline">
                                <input type="text" placeholder="SEO关键字"  name="seo_keywords"  class="layui-input ">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">SEO描述</label>
                            <div class="layui-input-block">
                                <textarea name="seo_description"  cols="30" rows="10" class="layui-textarea"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <div class="layui-text">带 * 号的为必填项</div>
                            <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                            <a href="javascript:history.go(-1);" class="layui-btn layui-btn-primary" >返回</a>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
<style>
    .cate-tab{
    }
    .cate-tab li{
        line-height: 20px;
        height: 20px;
        padding: 10px;
        border: 1px solid #ecf0f1;
    }
    .cate-this{
        background-color: #dad7d742;
    }
    .cate-tab-item{
        display: none;
    }
    .cate-show{
        display: block;
    }
</style>